package com.ikun.pojo;

import java.util.Date;

public class TbTask {

    private Long id;
    private String title;
    private String content;
    private String pic;
    private String createtime;
    private String starttime;
    private String endtime;
    private Integer cardnum;
    private Integer usernum;
    private Integer grade;
    private TbUser user;
    private TbType type;

    private int commentNum;

    public TbTask(Long id, String title, String content, String pic, String createtime, String starttime, String endtime, Integer cardnum, Integer usernum, Integer grade, TbUser user, TbType type, int commentNum) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.pic = pic;
        this.createtime = createtime;
        this.starttime = starttime;
        this.endtime = endtime;
        this.cardnum = cardnum;
        this.usernum = usernum;
        this.grade = grade;
        this.user = user;
        this.type = type;
        this.commentNum = commentNum;
    }

    public TbTask(String title, String content, String pic, String createtime, String starttime, String endtime, Integer cardnum, Integer usernum, Integer grade, TbUser user, TbType type, int commentNum) {
        this.title = title;
        this.content = content;
        this.pic = pic;
        this.createtime = createtime;
        this.starttime = starttime;
        this.endtime = endtime;
        this.cardnum = cardnum;
        this.usernum = usernum;
        this.grade = grade;
        this.user = user;
        this.type = type;
        this.commentNum = commentNum;
    }

    public TbTask() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic == null ? null : pic.trim();
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    public Integer getCardnum() {
        return cardnum;
    }

    public void setCardnum(Integer cardnum) {
        this.cardnum = cardnum;
    }

    public Integer getUsernum() {
        return usernum;
    }

    public void setUsernum(Integer usernum) {
        this.usernum = usernum;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public TbUser getUser() {
        return user;
    }

    public void setUser(TbUser user) {
        this.user = user;
    }

    public TbType getType() {
        return type;
    }

    public void setType(TbType type) {
        this.type = type;
    }

    public int getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(int commentNum) {
        this.commentNum = commentNum;
    }
}